<?php
// include /conf/glob_conf.php
    for($i=1;$i < substr_count($_SERVER['PHP_SELF'],'/');$i++)
      $relative_path .= '..'.DIRECTORY_SEPARATOR;
    require_once $relative_path . 'conf'.DIRECTORY_SEPARATOR.'glob_conf.php';

    //Define modules particular constant
    define(MOD_NAME,"member");
    define(MEMBER_DEFAULT_SKIN,
		MODU_DIR.DIRECTORY_SEPARATOR.MOD_NAME.DIRECTORY_SEPARATOR."skins".DIRECTORY_SEPARATOR."default");

    require_once("Smarty.class.php");
    class Smary_member extends Smarty {
        function Smary_member($skin=MEMBER_DEFAULT_SKIN)
        {
            // Class Constructor.
            // These automatically get set with each new instance.
            $this->Smarty();
            $this->template_dir = $skin;
            $this->config_dir = G_TEMPLATE_CONF_DIR;
            $this->cache_dir = G_TEMPLATE_CACHE_DIR;
            $this->compile_dir = G_TEMPLATE_COMPILE_DIR;  
            
            $this->caching = true;
            $smarty->compile_check = true;
            
            $this->assign('this_name', MOD_NAME);
        }
    }